<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    div{
      overflow: hidden;
      width: 200px;
      height: 200px;
      border: 1px solid #000000;
      margin: 100px auto;
    }
    div::before{

      content: 'hidden';
      display: block;
      width: 100%;
      height: 100%;
      background-color: #ff8500;
      transform-origin: left bottom;
     transform: rotate(180deg);
      transition: all 0.6s;
    }
    div:hover::before{
      transform: rotate(0deg);
    }
  </style>
</head>
<body>
<div></div>
</body>
</html>
